<?php /* Smarty version 2.6.19, created on 2008-06-17 21:19:26
         compiled from profile/friend.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'config_load', 'profile/friend.tpl', 1, false),)), $this); ?>
<?php echo smarty_function_config_load(array('file' => "index.conf"), $this);?>

<html>

<head>
    <title></title>
    <link rel="stylesheet" href="/media/css/pro.css" type="text/css" media="screen" />
</head>

<body>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "inc/global_menu.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?><br />
<?php if ($this->_tpl_vars['data']['user_avatar']): ?>
    <img src="<?php echo $this->_tpl_vars['data']['user_path']; ?>
/<?php echo $this->_tpl_vars['data']['user_avatar']; ?>
" width="80" align="left" style="margin:0 5 0 1;" />
<?php else: ?><img src="/media/img/face.jpg" width="80" align="left" style="margin:0 5 0 1;" /><?php endif; ?>
<span class="field_name">Name:</span> <?php echo $this->_tpl_vars['data']['user_login']; ?>
<br />
<span class="field_name">Age:</span> <?php echo $this->_tpl_vars['data']['user_age']; ?>
<br />
<span class="field_name">About:</span> <?php echo $this->_tpl_vars['data']['user_description']; ?>
<br />
<a href="/user/upload/">Change profile Picture</a>
<p>&nbsp;</p>
<?php $_from = $this->_tpl_vars['friends']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['item']):
?>
    <a href="/another/index/<?php echo $this->_tpl_vars['item']['user_id']; ?>
/"><?php echo $this->_tpl_vars['item']['user_login']; ?>
</a>
    <?php if (time ( ) - $this->_tpl_vars['item']['user_last_visit'] > $this->_config[0]['vars']['online']): ?>
        <span style="color: red;">(offline)</span>
    <?php else: ?>
        <span style="color: green;">(online)</span>
    <?php endif; ?><br />
<?php endforeach; endif; unset($_from); ?><br />
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "profile/inc/return.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

</body>

</html> 